package com.zcx.qshop.activity;

import android.os.Bundle;

import com.zcx.helper.bound.BoundView;
import com.zcx.helper.pager.Guide;
import com.zcx.qshop.QSApplication;
import com.zcx.qshop.R;
import com.zcx.qshop.view.GuideView;

/**
 * Created by Administrator on 2015/8/7 0007.
 */
public class GuideActivity extends QSActivity {

    @BoundView(R.id.guide_guide_view) private GuideView guideView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_guide);

        guideView.addLayoutId(R.layout.item_guide_one, R.layout.item_guide_two, R.layout.item_guide_three);

        guideView.setOnEndListener(R.id.guide_start, new Guide.OnEndListener() {

            @Override
            public void onEnd() {

                QSApplication.QSPreferences.saveIsGuide(true);

                startVerifyActivity(NavigationActivity.class);

                finish();

            }

        });

    }

}
